package com.android.sharecar.model;

import android.location.Location;

import java.util.Date;

/**
 * Base class of posted user msg(Real time request msg, reservation msg,
 *  user online msg user talk msg).
 * @author xinyan
 * @date 2011-10-20
 */
public class DynamicMsg {
	public static String TAG = "DynamicMsg";
	public MessageType TYPE;
	private Date postTime;
	private String startPlace, endPlace;
	private Location startLocation, endLocation; // 对应起点和终点的地理位置

	// Add reference to User
	private User user;

	public Date getPostTime() {
		return postTime;
	}

	public void setPostTime(Date postTime) {
		this.postTime = postTime;
	}

	public String getStartPlace() {
		return startPlace;
	}

	public void setStartPlace(String startPlace) {
		this.startPlace = startPlace;
	}

	public String getEndPlace() {
		return endPlace;
	}

	public void setEndPlace(String endPlace) {
		this.endPlace = endPlace;
	}

	public Location getStartLocation() {
		return startLocation;
	}

	public void setStartLocation(Location startLocation) {
		this.startLocation = startLocation;
	}

	public Location getEndLocation() {
		return endLocation;
	}

	public void setEndLocation(Location endLocation) {
		this.endLocation = endLocation;
	}

	public User getUser() {
		return user;
	}

	public void setUser(User user) {
		this.user = user;
	}

}
